package com.dimaidt.girl.exception;

import com.dimaidt.girl.enums.ResultEnum;

/**
 * @author : Alex Hu
 * date : 2020/2/26 下午22:30
 * description :
 */
public class GirlException extends RuntimeException {
    private Integer code;

    /**
     * Instantiates a new Girl exception.
     *
     * @param resultEnum the result enum
     */
    public GirlException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
